package part3.dip_practise2.second;

/**
 * Created by lie on 2018/4/9.
 */
public class DeviceService {
    private IDeviceOperation iDeviceOperation;

    public DeviceService(IDeviceOperation iDeviceOperation) {
        this.iDeviceOperation = iDeviceOperation;
    }

    public void login(){
        iDeviceOperation.login();
    }

    public void logout(){
        iDeviceOperation.logout();
    }
}
